package com.design.blog.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.design.blog.model.Article;
import com.design.blog.model.Category;
import com.design.blog.model.vo.CategoryVO;

import java.util.List;

/**
 * @version 1.0
 * @author hxg
 * @date 2022-02-28
 * 服务类
 */
public interface ICategoryService extends IService<Category> {

	/**
	 * 自定义分页查询
	 * @param page
	 * @param category
	 * @return 分页数据
	 */
	IPage<Category> selectCategoryPage(IPage<Category> page, CategoryVO category);

    List<Category> getCategorys();

    List<Article> getCategoryArticles(Long id);
}
